#include <stdio.h>

int main() {

    int a,temp;
    int b=0;
   
    scanf("%d", &a);
	temp=a;
	while(a)
	{b = b*10+a%10;
	a/=10; 
	  }  
      if (temp ==b)
      printf("Yes\n");
      else printf("No\n");
   
    return 0;

}

 

